<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Zonas_model extends MY_Model {

    function __construct() {
        parent::__construct();
        $this->_table = 'provincia';
        $this->primary_key = 'prv_id';
    }

    public function getMunicipio($datos = null) {
        if (isset($datos['mun_fk_provincia'])) {
            $this->db->where('mun_fk_provincia', $datos['mun_fk_provincia']);
        }
        $this->db->order_by('mun_desc', 'asc');
        return (array)$this->db->get('municipio')->result_array();
    }
}

/* End of file MY_Model.php */
/* Location: ./core/MY_Model.php */